Package-level declarations
Types
Link copied to clipboard
Generic view for the prefix, question, and hint as the header of a group using a view holder of type QuestionnaireViewHolderType.GROUP.
Link copied to clipboard
View for the prefix, question, and hint of a questionnaire item.
Link copied to clipboard
class MarginItemDecoration(marginVertical: Int, marginHorizontal: Int) : RecyclerView.ItemDecoration
ItemDecoration that applies a specified margin to the items. Use this instead of manually adding a margin to the item's layout.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class QuestionnaireViewItem(val questionnaireItem: Questionnaire.QuestionnaireItemComponent, questionnaireResponseItem: QuestionnaireResponse.QuestionnaireResponseItemComponent, val validationResult: ValidationResult, answersChangedCallback: suspend (Questionnaire.QuestionnaireItemComponent, QuestionnaireResponse.QuestionnaireResponseItemComponent, List<QuestionnaireResponse.QuestionnaireResponseItemAnswerComponent>, Any?) -> Unit, val enabledAnswerOptions: List<Questionnaire.QuestionnaireItemAnswerOptionComponent> = questionnaireItem.answerOption.ifEmpty { emptyList() }, val minAnswerValue: Type? = questionnaireItem.minValue, val maxAnswerValue: Type? = questionnaireItem.maxValue, val draftAnswer: Any? = null, val enabledDisplayItems: List<Questionnaire.QuestionnaireItemComponent> = emptyList(), val questionViewTextConfiguration: QuestionTextConfiguration = QuestionTextConfiguration(), val isHelpCardOpen: Boolean = questionnaireItem.isHelpCode, val helpCardStateChangedCallback: (Boolean, QuestionnaireResponse.QuestionnaireResponseItemComponent) -> Unit = { _, _ ->
})
Data item for QuestionnaireItemViewHolder in RecyclerView.
Link copied to clipboard
data class QuestionTextConfiguration(val showAsterisk: Boolean = false, val showRequiredText: Boolean = false, val showOptionalText: Boolean = false)